package me.wxide.mysmsfilter;

import me.wxide.smsfilter.R;
import android.app.Activity;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.database.Cursor;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;

public class SMSFilterActivity extends Activity implements RuleChains{
  
	private MySmsReceiver recevier=new MySmsReceiver();  
	  /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.setup);
        cursor=getContentResolver().query(RULE_URI, FIELDS, null, null, null);
        Log.v(TAG, "RULES:"+cursor.getCount());
       startService(new Intent(this,SMSFilterService.class));
       
    }
    protected Cursor cursor;
    class myAdapter extends BaseAdapter{

		@Override
		public int getCount() {
			// TODO Auto-generated method stub
			return cursor.getCount();
		}

		@Override
		public Object getItem(int arg0) {
			// TODO Auto-generated method stub
			return null;
		}

		@Override
		public long getItemId(int arg0) {
			// TODO Auto-generated method stub
			return 0;
		}

		@Override
		public View getView(int arg0, View arg1, ViewGroup arg2) {
			// TODO Auto-generated method stub
			return null;
		}
    	
    }
    class Holder{
    	TextView tv1;
    	TextView tv2;
    	TextView tv3;
    }
}
